package lib.self.ex.activity;

import androidx.annotation.DrawableRes;
import android.widget.ImageView;

import lib.self.R;

/**
 * description: 简单的闪屏页
 * author: Steven Xiao
 * date: 2017/5/12
 */
public abstract class SimpleSplashActivityEx extends SplashActivityEx {
    private ImageView mIv;

    @Override
    public int getContentViewId() {
        return R.layout.activity_spalsh_ex;
    }

    @Override
    public void findViews() {
        mIv = findViewById(R.id.splash_iv);
    }

    @Override
    public void setViewsValue() {
        mIv.setImageResource(getSplashImageRedId());
        goNext();
    }

    @DrawableRes
    protected abstract int getSplashImageRedId();
}
